//
//  CollectionViewCycleCell.swift
//  DouYuZB
//
//  Created by DSDL on 2016/11/1.
//  Copyright © 2016年 鼎商动力. All rights reserved.
//

import UIKit
import Kingfisher
class CollectionViewCycleCell: UICollectionViewCell {
    
    @IBOutlet weak var iconImage: UIImageView!
    @IBOutlet weak var titleLabel: UILabel!
    
    //MARK: - 定义属性
    var cycleModel:CycleModel?{
        didSet{
            //1.头像
            iconImage.kf.setImage(with: URL(string: cycleModel?.pic_url ?? ""), placeholder: UIImage(named: "Img_default"))
            //标题
            titleLabel.text = cycleModel?.title
        }
    }
    override func awakeFromNib() {
        super.awakeFromNib()
        self.backgroundColor = UIColor.white
    }
    
}
